{include theme=com/head}

{if:($product.display)}
<section class="product" bosscms="product" groups="{$product.items}">
  <article>
    {if:($product.title)}
	{items class=one id=$product.items data=$product_items}{/items}
    <div class="title">
      <h2 {$product._title}>{$product.title}</h2>
      <p {$product._text}>{$product.text}</p>
    </div>
	{/if}
	{if:($product.items)}
    <div class="list-box">
      <ul>
	    {group class=list items=$product.items rows=$product.number}
        <li>
          <a href="{$v.url}" title="{$v.name}" {$v.target}>
            <span><img {$v._image} src="{$v.image|thumb=$v.width,$v.height}" alt="{$v.name}" /></span>
            <h4 {$v._name}>{$v.name}</h4>
            {if:($v.price)}
            <h3 {$v._price}>{$v.price}</h3>
			{/if}
          </a>
        </li>
		{/group}
      </ul>
    </div>
	{/if}
  </article>
</section>
{else}
<section bosscms="product" view></section>
{/if}

{if:($introduce.display)}
<section class="introduce" bosscms="introduce">
  <article>
    <div class="title">
      <h2 {$introduce._title}>{$introduce.title}</h2>
      <p {$introduce._text}>{$introduce.text}</p>
    </div>
    <div class="content">
	  {if:($introduce.image)}
      <img {$introduce._image} src="{$introduce.image}" alt="{$introduce.title}" />
	  {/if}
      <aside{$introduce._content}>{$introduce.content}</aside>
    </div>
  </article>
</section>
{else}
<section bosscms="introduce" view></section>
{/if}

{if:($news.display)}
<section class="news" bosscms="news" groups="{$news.items}">
  <article>
    {if:($news.title)}
	{items class=one id=$news.items data=$news_items}{/items}
    <div class="title">
      <h2 {$news._title}>{$news.title}</h2>
      <p {$news._text}>{$news.text}</p>
    </div>
	{/if}
    {if:($news.items)}
    <div class="list-box">
      <ul>
        {group class=list items=$news.items rows=$news.number}
        <li>
          <a href="{$v.url}" title="{$v.name}" {$v.target}>
            <span><img {$v._image} src="{$v.image|thumb=$v.width,$v.height}" alt="{$v.name}" /></span>
          </a>
          <div>
            <h3 {$v._name}><a href="{$v.url}" title="{$v.name}" {$v.target}>{$v.name}</a></h3>
            <i>{$v.mtime|date='Y-m-d',###}</i>
            <p {$v._text}>{$v.text}</p>
          </div>
        </li>
		{/group}
      </ul>
    </div>
	{/if}
  </article>
</section>
{else}
<section bosscms="news" view></section>
{/if}

{include theme=com/foot}